
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __UNIT_H
#define __UNIT_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include <malloc.h>
#include <termios.h>
#include <stdarg.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <errno.h>
#include <stdint.h>

#include <sys/stat.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/ioctl.h>


extern void get_token(char *token);
extern void delay_ms(unsigned long mSec);
extern void mqtt_get_time(char *psDateTime);
extern int AtoH(char *str, uint8_t *out);
extern uint8_t itobcd(uint8_t data);
extern int get_current_time_global(char *DateTime);
extern uint64_t get_system_time_us(void);
extern uint64_t get_system_time_absoffset(uint64_t current, uint64_t last);
#endif /* __UNIT_H */
